import request from '@/config/request.js';

// ----------绑定订单-----------------
// 订单列表
export const getOrderListAPI = (params) => request.post('/api/DCSoutBound/displayPDAMaterialDetail', params)

// PDA绑定地址合备料单
export const bindMissionAPI = (params) => request.post('/api/outBound/bindLine', params)

// ----------扫码下架-----------------
// 判断是否是亮灯货架
export const checkIsLightAPI = (params) => request.post('/api/lightUpShelves/isLightUpShelves', params)

// ----------亮灯货架-----------------
// 解绑亮灯货架物料
export const unBindLightMaterialAPI= (params) => request.post('/api/lightUpShelves/allocation', params)

// ----------普通货架-----------------
// 解绑普通货架物料
export const unBindCommonMaterialAPI= (params) => request.post('/api/outBound/unBindMaterial', params)

// ----------普通货架/亮灯货架---------
// 显示亮灯货架颜色
export const displayColorAPI= (params) => request.post('/api/lightUpShelves/displayColor', params)

// 绑定需求单和亮灯货架
export const bindOrderAPI= (params) => request.post('/api/lightUpShelves/allocation', params)

// 已绑定的订单号
export const alreadyBindOrderAPI= (params) => request.post('/api/outBound/scanDisplayBindOrder', params)

// 解绑PDA已经绑定的订单号
export const submitUnBindAPI= (params) => request.post('/api/outBound/unboundMac', params)

// ----------上架 普通/亮灯货架--------
// 普通货架上架/查询
export const getNeedSortListAPI= (params) => request.post('/api/outBound/scanDisplayInfo', params)

// 判断当前需求单是否全部出完
export const checkRackAPI= (params) => request.post('/api/outBound/rackMaterialFullOut', params)

// 手动触发
export const callCarAPI= (params) => request.post('/api/outBound/handComplete', params)

// 亮灯货架上架
export const lightShelfBindAPI= (params) => request.post('/api/lightUpShelves/toLightUpShelves', params)

// ----------拆分物料重上架------------
export const splitMaterialReShelfAPI= (params) => request.post('/api/outBound/isCutInboundRemove', params)


